package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.acticle.domain.CityScenicDetail;
import cn.wolfcode.luowowo.comment.domain.ScenicComment;
import cn.wolfcode.luowowo.comment.query.ScenicCommentQueryObject;
import org.springframework.data.domain.Page;

/**
 * 景点评论服务
 */
public interface IScenicCommentService {
    /**
     *
     * @param scenicComment
     */
    void saveOrUpdate(ScenicComment scenicComment);

    /**
     * 查询评论
     * @param qo
     * @return
     */
    Page<ScenicComment> query(ScenicCommentQueryObject qo, CityScenicDetail detail);

    /**
     * 点赞功能
     * @return
     */
    boolean thumbUp(String toid, Long fromid);
}
